package com.power.sifa.correction.api;

import com.plf.common.domain.ResponseDTO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;
import com.power.sifa.correction.model.Cre_work_sup;
import com.power.sifa.correction.model.pageInfo.Cre_work_supPageInfo;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

/**
 *  督办任务 Feign
 */
public interface ICre_work_supFeign {

    /**
     * 督办任务分页列表
     */
    @PostMapping("/cre_work_sup/list")
    ResponseDTO list(@RequestBody Cre_work_supPageInfo cre_work_supPageInfo);

    /**
    * 查看督办任务
    */
    @GetMapping("/cre_work_sup/view")
    ResponseDTO view(@RequestParam("id") String id);

    /**
    * 删除督办任务
    */
    @PostMapping("/cre_work_sup/delete")
    ResponseDTO delete(@RequestParam("id") String id);

    ///**
    // * 查看督办任务 复合主键使用
    // */
    //@PostMapping("/cre_work_sup/viewByPK")
    //ResponseDTO viewByPK(@RequestBody Cre_work_sup.Cre_work_supPK pk);

    /**
     * 修改或保存督办任务
     */
    @PostMapping("/cre_work_sup/save")
    ResponseDTO save(@RequestBody Cre_work_sup  cre_work_sup);

    ///**
    // * 删除督办任务 复合主键使用
    // */
    //@PostMapping("/cre_work_sup/deleteByPK")
    //ResponseDTO deleteByPK(@RequestBody Cre_work_sup.Cre_work_supPK pk);

    /**
     * 批量删除督办任务
     */
    @PostMapping("/cre_work_sup/batchDel")
    ResponseDTO batchDel(@RequestParam("ids") String ids);

    /**
     * 批量保存督办任务
     */
    @PostMapping("/cre_work_sup/batchSave")
    ResponseDTO batchSave(@RequestBody List<Cre_work_sup> list);

     /**
     * 导出excel
     */
    @PostMapping("/cre_work_sup/output")
    void output(HttpServletResponse response, @RequestBody Cre_work_supPageInfo cre_work_supPageInfo);

     /**
     * 导出excel模板
     */
    @PostMapping("/cre_work_sup/exportExcelTemplate")
    void exportExcelTemplate(HttpServletResponse response);

     /**
     *	导入excel
     */
    @PostMapping("/cre_work_sup/importExcel")
    ResponseDTO importExcel(@RequestBody MultipartFile file) throws IOException;

}
